<?php
$loader->requireOnce('includes/AutoSuggest/IAutoSuggest.class.php');
/**
 * interface for auto suggest
 * @package modules.dept_pharmacy.includes.AutoSuggest
 * @author viethd
 * @version $Id$
 * @copyright 2009 LHV Company
 */
class DrugMaterialAutoSuggest implements IAutoSuggest {
    const LIMIT = 50;
    
   function __construct() {
   
   }
   public function suggest($filter = array(), $needle, $short = true) {
       $phaDrugMaterialObj = Celini::newOrdo('DrugMaterial');
       return $phaDrugMaterialObj->getSuggestedDrugMaterials($filter,
        $needle, DrugMaterialAutoSuggest::LIMIT, $short);    
                
   }
	
}
?>